package com.fs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.pojo.Customer;
import com.fs.pojo.WhTransfer;
import com.fs.vo.Condition;

import java.util.List;

/**
 * @author hyy
 * @version 1.0
 * @description: 顾客信息服务层
 * @date 2024/10/16 19:30
 */
public interface Customerservice {
    /**
     * 查询所有顾客信息,顾客编号，状态，名称条件查询
     * @param condition
     * @return
     */
    Page<Customer> queryAll(Condition<Customer> condition);
    /**
     * 添加客户
     * @param customer 客户表模型
     * @return
     */
    Integer addCustomer(Customer customer);

    /**
     * 根据id删除客户
     * @param id
     * @return
     */
    Integer deleteCustomer(int id);

    /**
     * 修改客户表
     * @param customer
     * @return
     */
    Integer updateCustomer(Customer customer);
    /**
     * 主键id查询
     * @param id id主键
     * @return
     */
    Customer queryCustomerById(Integer id);

    /**
     * 查询所有顾客信息
     * @return
     */
    List<Customer> queryAllCus();
}
